//
//  TableEnum.swift
//  CooperSwift_Example
//
//  Created by 计海峰 on 2021/5/27.
//  Copyright © 2021 CocoaPods. All rights reserved.
//

import Foundation


enum TableViewModelFromTargetServiceEnum {
    case table, controller, view
}

enum TableViewModelRunServiceEnum {
    case reloadTable, reloadSection, reloadCell, removeCell
}

extension TableViewModelRunServiceEnum {
    func runMethod() -> String {
        var method = ""
        switch self {
        case .reloadTable:
            method = "serviceReloadTable"
        case .reloadSection:
            method = "serviceReloadSection"
        case .reloadCell:
            method = "serviceReloadCell"
        case .removeCell:
            method = "serviceRemoveCell"
        }
        return method
    }
}
